﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<% 
    DAL.Service.IUserInfoService userOper = new DAL.Service.Impl.UserInfoServiceImpl();
    DomainModel.UserInfo user = (DomainModel.UserInfo)Session["user"];    
%>
<!--main-->
<div class="main study_mian_box w_980 clearfix">
	<div class="study_main clearfix">
        <!--left-->
        <% 
            Html.RenderPartial("~/Views/Shared/VipcenterLeft.ascx");
        %>
        <!--right-->
        <div class="study_right">
        	<h3>个人信息</h3>
            <!--main-->
            <div class="main_info_box">
            	<ul>
                <%
                    DomainModel.UserInfo ui = (DomainModel.UserInfo)Session["user"];
                    bool li_bg = true;
                    if (ui.u_name != null && ui.u_name.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>中文名：</span><%=ui.u_name%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_enName != null && ui.u_enName.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>英文名：</span><%=ui.u_enName%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_papers != null && ui.u_papers.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>有效证件号：</span><%=ui.u_papers%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_birthday != null)
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>出生日期：</span><%=DateTime.Parse(ui.u_birthday.ToString()).ToString("yyyy-MM-dd")%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_sex != null)
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>性别：</span><%=(ui.u_sex==0?"男":"女")%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_school != null && ui.u_school.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>在读学校：</span><%=ui.u_school%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_class != null && ui.u_class.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>在读班级：</span><%=ui.u_class%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                </ul>
            	<ul>
                <%
                    if (ui.u_patriarchName1 != null && ui.u_patriarchName1.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长1姓名：</span><%=ui.u_patriarchName1%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_raletion1 != null && ui.u_raletion1.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长1与学员关系：</span><%=ui.u_raletion1%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_tel1 != null && ui.u_tel1.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>联系电话1：</span><%=ui.u_tel1%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_patriarchAge1 != null)
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长1年龄：</span><%=ui.u_patriarchAge1%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_patriarchEducation1 != null && ui.u_patriarchEducation1.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长1学历：</span><%=ui.u_patriarchEducation1%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_job1 != null && ui.u_job1.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长1从事行业：</span><%=ui.u_job1%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_post1 != null && ui.u_post1.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长1职位：</span><%=ui.u_post1%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                </ul>
            	<ul>
                <%
                    if (ui.u_patriarchName2 != null && ui.u_patriarchName2.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长2姓名：</span><%=ui.u_patriarchName2%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_raletion2 != null && ui.u_raletion2.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长2与学员关系：</span><%=ui.u_raletion2%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_tel2 != null && ui.u_tel2.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>联系电话2：</span><%=ui.u_tel2%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_patriarchAge2 != null)
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长2年龄：</span><%=ui.u_patriarchAge2%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_patriarchEducation2 != null && ui.u_patriarchEducation2.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长2学历：</span><%=ui.u_patriarchEducation2%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_job2 != null && ui.u_job2.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长2从事行业：</span><%=ui.u_job2%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_post2 != null && ui.u_post2.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>家长2职位：</span><%=ui.u_post2%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                </ul>
            	<ul>
                <%
                    if (ui.u_address != null && ui.u_address.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>住址：</span><%=ui.u_address%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                <%
                    if (ui.u_email != null && ui.u_email.Trim() != "")
                    {    
                %>
                	<li <%=(li_bg ? "class='li_bg'" : "") %>><span>邮箱地址：</span><%=ui.u_email%></li>
                    
                <% 
                        li_bg = !li_bg;
                    }
                %>
                </ul>
            </div>
        </div>
    </div>
    <div class="bottom_bg"></div>
</div>

</asp:Content>
